package vn.edu.ptithcm.pim.service;

import vn.edu.ptithcm.pim.dom.City;

import java.util.List;

import vn.edu.ptithcm.pim.dao.CityDao;
@SuppressWarnings({ "rawtypes" })
public class CityService {
	private CityDao cityDao;

	public CityDao getCityDao() {
		return cityDao;
	}

	public void setCityDao(CityDao cityDao) {
		this.cityDao = cityDao;
	}

	public void save(City city) {
		cityDao.save(city);
	}

	public void saveOrUpdate(City city) {
		cityDao.saveOrUpdate(city);
	}

	public void lock(City city) {
		cityDao.lock(city);
	}

	public void delete(City city) {
		cityDao.delete(city);
	}

	public City merge(City city) {
		return cityDao.merge(city);
	}

	public City findById(java.lang.Long id) {
		return cityDao.findById(id);
	}

	public List findByExample(City city) {
		return cityDao.findByExample(city);
	}

	public List getAll() {
		return cityDao.getAll();
	}

	
}
